package Launch;

import BinaryTree.BinaryTree;

public class Launch {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        binaryTree.addNode("A", "");
        binaryTree.addNode("B", "toLeft");
        binaryTree.addNode("C", "toRight");
        binaryTree.addNode("D", "toLeft");
        binaryTree.addNode("E", "toRight");
        System.out.println(binaryTree.toString());
        System.out.println("высота дерева - " + binaryTree.showHeight());
    }
}
